var Baby={};

Baby.flow=(function() {
	return{		
		processData :function(data){
			var containDiv="";
			if(!data|| typeof data=='function'){
				return containDiv;
			}
				$(data).each(function (i,value){				
					var imgDiv = '<div class="img"><a href=' + value.link
							+ '><img src= ' + value.imageURL + ' /></a>'
							+ '<span class="price">￥190</span>' + '<div class="btns">'
							+ '<a href="#" class="img_album_btn">加入专集</a></div>'
							+ '</div>';
					var titleImg = '<div class="title">' + value.title + '</div>';
					var itemDiv = '<div class="item_t">'+imgDiv+'</div>'+ titleImg;
					
					
					var likeDiv = '<div class="items_likes fl"><a href="#" class="like_btn"></a><em class="bold">916</em></div>';
					var commentDiv = '<div class="items_comment fr"><a href="#" onclick="addNewComments('+value.id+')">评论</a><em class="bold">(0)</em></div>';
					
					var itemDes = '<div class="item_b clearfix">'+likeDiv+commentDiv+'</div>';
					containDiv=containDiv+'<div class="item">'+itemDiv+itemDes+'</div>';;
					});
			
				return containDiv;
				}
		
	};
		})();
		

